// 模板模块的 store
export default {
  namespaced: true,
  state: {
    name: '',
    xxx: '这里的数据只存储在 vuex 中, 并没有缓存到 localStorage',
  },
  mutations: {
    setCount: (state, data) => { state.name = data; },
  },
  actions: {
    setCountActions({ commit, rootState }) {
      commit('setCount', rootState.userInfo?.userName);
    },
  },
  getters: {},
};
